<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<div class="container">
    <div class="grid-960">
        <!-- 支付订单详情 -->
        <jsp:include page="../content/orderDtl.jsp" flush="true"/>
        <div class="payment-mode">
            <div class="borderBox-3 posiRelative fix">
                <form action="${ctx}${returnUrl}" method="post" id="illegalRequestForm">
                    <div class="danger-info width450">
                        <span class="font16">尊敬的客户：</span>
                        <p>为保障您的资金安全，请仔细核对以下订单信息，并确定是否继续支付，<br/>如已确认无误，请点击“继续支付”完成本次交易，<br/>如发现交易信息有误，请点击"终止交易".</p>
                        <div class="safe-code">
                            <img id="checkCodeImg" src="${ctx}/antiphish/verifycode.jpeg?orderId=${orderId}" alt="" />
                        </div>
                        <table class="marginTop20">
                            <tbody>
                            <tr>
                                <th><span class="font16">请输入浮动的四位字母验证码：</span></th>
                                <td>
                                    <input type="text" id="verifyCode" name="verifyCode" class="input-style-2 width122 marginRight20" />
                                    <span class="refresh zoom" onclick="changeImg();"></span>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <input type="hidden" id="orderId" name="orderId" value="${orderId}">
                    <input type="hidden" name="orderKey" id="orderKey" value="<%=request.getParameter("orderKey")%>"/>
                    <c:forEach items="${temp}" var="t">
                        <input type="hidden" id="${t.key}" name="${t.key}" value="${t.value}">
                    </c:forEach>
                </form>
                <div class="danger-tips bg-color-fff">
                    <ul class="paddingTop40">
                        <li><img src="${ctx}/static/00100/images/small_tips.png" /></li>
                        <li>1、切勿轻信陌生短信、登录非法网站、<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透露银行卡等信息。</li>
                        <li>2、不要轻易点击不明链接进行购买和支付。</li>
                        <li>3、尽可能不要在公共场所（如网吧）<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用网上银行支付。</li>
                        <li>4、保存好银行发送的动态密码短信内容，<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不要向任何人透露。。</li>
                        <li>5、电脑上安装防火墙与杀毒软件，<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;并定期更新，防范病毒侵害。</li>
                        <li>6、提高警惕，谨防钓鱼网站，防止欺诈受骗。</li>
                    </ul>
                </div>
            </div>
            <div class="set-language-2">
                <button type="button" class="btn-2 marginTop20 marginLeft170"  onclick="doSubmit();">继续支付</button>
                <button type="button" class="btn-2 marginTop20 marginLeft170" onclick="doCancel();">终止交易</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {
    });
    function doSubmit() {
        if($('#verifyCode').val() == ''){
            alert('请输入验证码');
            return false;
        }
        $('#illegalRequestForm').submit();
    }
    function doCancel(){
        window.open('','_parent','');
        window.close();
        location.href='about:blank';
    }
    function changeImg() {
        var url = $("#checkCodeImg").attr("src") + "&time="+ (new Date()).valueOf();
        $("#checkCodeImg").attr("src", url);
    };
</script>
<%@include file="footer.jsp"%>